package com.ist.smartmonitor.server;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import com.ist.smartmonitor.client.GreetingService;
import com.ist.smartmonitor.shared.AbstractDto;
import com.ist.smartmonitor.util.Converter;

/**
 * The server side implementation of the RPC service.
 */
@SuppressWarnings("serial")
public class GreetingServiceImpl extends RemoteServiceServlet implements
		GreetingService {

	@Override
	public AbstractDto  getObj() throws Exception {
		return Converter.convertAbstractDataToDto(UpdateObserver.getInstance().execute());
	}

}
